package com.example.example.fragment;

import android.webkit.WebView;

import com.example.example.R;

/***
 * Created by Administrator on 2017/11/4.
 */

public class ThreeFragment extends BaseFragment {


    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
        WebView webView= (WebView) findViewById(R.id.webview);
        webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
        webView.getSettings().setUseWideViewPort(true);
        webView.getSettings().setJavaScriptEnabled(true);

        //wView.loadUrl("file:///android_asset/index.html");
        //wView.loadUrl("content://com.android.htmlfileprovider/sdcard/index.html");
        webView.loadUrl("file:///android_asset/three.html");
       // webView.loadUrl("https://www.baidu.com/");
    }


    @Override
    public int getFragmentViewById() {
        return R.layout.three_fragment;
    }

}
